//app.js
App({
  onShow: function () {
    function f() {
      console.log('aaa');
    }
    
    var array = [].slice.call('wew5452');
    console.log(array)
    console.log(array.copyWithin(1,3)); return false

    let set = new Set(['red', 'green', 'blue']);
    let arr = [...set];
    console.log(set)
    console.log(arr);return false
    
    var items = new Set([1, 2, 3, 4, 5]);
    items.forEach((value,key) => console.log(value*2))
    var array = Array.from(items);
    console.log(items)
    console.log(array); return false
    var items = new Set([1, 2, 3, 4, 5, 5, 5, 5]);
    console.log(items.size); return false
    let foo = {};
    ({aa:foo.name} = {aa:'1foo'})
    var node = {
      loc: {
        start: {
          line: 1,
          column: 5
        }
      }
    };

    var { loc: { start: { line }} } = node;
    console.log(line)
    //({foo} = {foo: 1});
    console.log(foo); return false
    let obj = {name:'xuying',age:15}
    let {name:mingzi,age:nianlin} = obj
    console.log(mingzi)
  },
  globalData: {
    userInfo: null,
    code:'', //全局code
    token:null, //全局token  上传时携带api header里，                                                             
    checkup:null
  }
})